// 人员相关接口
import { get, post, put, exportDefault } from '@/utils/request'

// 人员的公共URL前缀
let BASE_URL = '/common/user'

const user = {
  queryUserPage: (data) => post(BASE_URL + '/searchDefault', data),
  exportUser: (data) => exportDefault(BASE_URL + '/exportDefault', data),
  getUserById: (data) => get(BASE_URL + '/getById', data),
  createUser: (data) => post(BASE_URL + '/create', data),
  updateUser: (data) => put(BASE_URL + '/update', data)
}
export default user
